﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="modelType.aspx.cs" Inherits="WebSite.admin.product.modelType" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
         <script src="../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    

       <ext:form ID="extForm1" runat="server"  BodyPadding="10px"  ShowBorder="false"  EnableBackgroundColor="true"  Title="" ShowHeader="false" >
                       <Rows>
                    <ext:FormRow>
                     <Items>
                    <ext:textbox ID="txtModelTypeName"  Label="型号名称" Required="true"  Width="200px"  MaxLength="200"
                                                                ShowRedStar="true" runat="server" Text=""></ext:textbox>
                     <ext:NumberBox ID="txtGoodsPoints"   Label="所需福点数" MaxValue="100000" MinValue="1" Required="true"  Width="80px"  MaxLength="200"
                                                                ShowRedStar="true" runat="server" Text=""></ext:NumberBox>
                    </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                    <Items>
                        <ext:NumberBox ID="txtGoodsWeight"   Label="重量(g)" MaxValue="100000" MinValue="1"  Width="80px"  MaxLength="200"
                                                                 runat="server" Text=""></ext:NumberBox>
                   <ext:NumberBox ID="txtOrder"  NoDecimal="true"  Label="排序" MaxValue="100000" MinValue="1" Required="true"  Width="80px"  MaxLength="200"
                                                                ShowRedStar="true" runat="server" Text=""></ext:NumberBox>
                    </Items>
                    </ext:FormRow>

                         <ext:FormRow>
                    <Items>
                   <ext:NumberBox id="txtGoodsPrice" runat="server" Label="市场零售价" NoDecimal="true"  Width="100px" Required="true"  MaxValue="100000"   NoNegative="True"  ShowRedStar="true" MinValue="1"></ext:NumberBox>
               
                    </Items>
                    </ext:FormRow>


                     <ext:FormRow>
                    <Items>
                     <ext:Label ID="lblSave" runat="server"></ext:Label>
                    </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                    <Items>
                    <ext:Button ID="btnSave01" ValidateForms="extForm1" runat="server" Text="保 存" OnClick="btnSave01_Click" ></ext:Button>
                   
                      <ext:Button ID="btnClose"  runat="server" Text="关闭并刷新" OnClick="btnClose_Click" ></ext:Button>
                   
                    </Items>
                    </ext:FormRow>
                    </Rows>
                    </ext:form>



         <ext:Grid ID="Grid1" Title="型号列表" PageSize="50" ShowBorder="false"  CssClass="x-form-item"   AllowPaging="false" SortColumn="modelTypeName" SortDirection="ASC"     
                      ShowHeader="True" runat="server" EnableCheckBoxSelect="False"   AllowSorting="true"   Height="210px"  IsDatabasePaging="false" 
                        DataKeyNames="brandId"  EnableRowNumber="True">

        <Columns>
        
            
            <ext:BoundField Width="160px" ColumnID="modelTypeName" SortField="modelTypeName" DataField="modelTypeName" DataFormatString="{0}"
                HeaderText="型号名称" />
            <ext:BoundField Width="80px" ColumnID="goodsPoints" SortField="goodsPoints" DataField="goodsPoints" DataFormatString="{0}"
                HeaderText="福点数" />
                 <ext:BoundField Width="80px" ColumnID="goodsPrice" SortField="goodsPrice" DataField="goodsPrice" DataFormatString="{0}"
                HeaderText="市场零售价(元)" />
            <ext:BoundField Width="80px" ColumnID="modelTypeSort" SortField="modelTypeSort" DataField="modelTypeSort" DataFormatString="{0}"
                HeaderText="排 序" />
                  <ext:BoundField Width="80px" ColumnID="goodsWeight" SortField="goodsWeight" DataField="goodsWeight" DataFormatString="{0}"
                HeaderText="重 量(g)" />
        
          <ext:TemplateField Width="60px" SortField="" HeaderText="操作">
                <ItemTemplate>
                     
                       <a href="modelType.aspx?action=del&amp;mid=<%# Eval("modelTypeId") %>&amp;gid=<%= Request.QueryString["gid"]  %>"  onclick="return confirm('您确定要删除此型号吗？');" title="删除">[删除]</a>
                    
                </ItemTemplate>
            </ext:TemplateField>
        </Columns>
    </ext:Grid>
    </form>
</body>
</html>
